package com.md.iotest;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

/**
 * @Author Gong
 * @Description
 * @dATE 2022/3/28 17:12
 **/
public class Test {
    public static void main(String[] args) {
        int[] nums = {8, 8, 9, 9, 0};
        List<Integer> numList = new ArrayList<Integer>();
        for (int i : nums){
            numList.add(i);
        }

        Set<Integer> numSet = new HashSet<Integer>();
        numSet.addAll(numList);
        System.out.println(numSet);
    }
}
